import { createStore } from 'vuex'

export default createStore({
  state: {
    message: 'hello',
    aaa: [],
    //商品计件
    num: 0,
    //商品总计
    total: 0,
    //商品总名
    allName: '',
    //姓名
    name: '',
    //详细地址
    addressDetail: '',
    //省
    city: '',
    //区
    conty: '',
    //判断是否默认地址
    isDefault: null,
    //市
    province: '',
    //电话
    tel: ''
  },
  getters: {
  },
  mutations: {
    setNum(state, value) {
      state.num = value;
    },
    setTotal(state, value) {
      state.total = value;
    },
  },
  actions: {
  },
  modules: {
  },
})
